﻿using ElectronicCommerce.Framework.Utility.Mail.Configuration;

namespace ElectronicCommerce.Framework.Utility.Mail.Impl.Smtp
{
    /// <summary>
    /// Smtp Mail Server
    /// </summary>
    public class SmtpMailServer : IMailServer
    {

        #region IMailServer Members

        public string Host
        {
            get
            {
                return ConfigHelper.MailConfig.Smtp.Host;
            }
        }

        public int Port
        {
            get
            {
                return ConfigHelper.MailConfig.Smtp.Port;
            }
        }

        public string UserName
        {
            get
            {
                return ConfigHelper.MailConfig.Smtp.UserName;
            }
        }

        public string Password
        {
            get
            {
                return ConfigHelper.MailConfig.Smtp.Password;
            }
        }

        public string SenderMailAddress
        {
            get
            {
                return ConfigHelper.MailConfig.Smtp.SenderMailAddress;
            }
        }

        public string SenderDisplayName
        {
            get
            {
                return ConfigHelper.MailConfig.Smtp.SenderDisplayName;
            }
        }

        public bool EnableSsl
        {
            get
            {
                return ConfigHelper.MailConfig.Smtp.EnableSsl;
            }
        }

        #endregion

    }
}
